package com.t.bricks.bussiness.service.recharge;

import java.math.BigDecimal;

import com.t.bricks.bussiness.db.entity.recharge.base.WechatRefundBase;
import com.t.bricks.model.MsgEmity;

/**
 * 微信方式充值服务
 * @author HuangXinBian
 */
public interface WeChatPayService {

	/**
	 * 创建订单
	 * @param sOpenid 微信公开号
	 * @param mFund 充值金额
	 * @return
	 */
	MsgEmity createOrder(String sOpenid, BigDecimal mFund);
	
	/**
	 * 查找订单
	 * @param sOrderNo
	 * @return
	 */
	MsgEmity findByOrder(String sOrderNo);

	/**
	 * 修改订单
	 * @param iState
	 * @param sOrderNo
	 * @return
	 */
	MsgEmity changeState(int iState, String sOrderNo);

	/**
	 * 新增微信退款记录
	 * @param wechatRefund
	 * @return
	 */
	MsgEmity addWechatRefund(WechatRefundBase wechatRefund);
	
	/**
	 * 判断微信退款记录是否存在,存在返回非0
	 * @param sId
	 * @return
	 */
	MsgEmity hasWechatRefund(String sId);
	
}
